package com.yike.user.service;

import com.yike.user.entity.AgentCommission;
import com.yike.user.param.AgentCommissionPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 代理商分佣表 服务类
 *
 * @author Sakura
 * @since 2024-09-09
 */
public interface AgentCommissionService extends BaseService<AgentCommission> {

    /**
     * 保存
     *
     * @param agentCommission
     * @return
     * @throws Exception
     */
    boolean saveAgentCommission(AgentCommission agentCommission) throws Exception;

    /**
     * 修改
     *
     * @param agentCommission
     * @return
     * @throws Exception
     */
    boolean updateAgentCommission(AgentCommission agentCommission) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteAgentCommission(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param agentCommissionPageParam
     * @return
     * @throws Exception
     */
    Paging<AgentCommission> getAgentCommissionPageList(AgentCommissionPageParam agentCommissionPageParam) throws Exception;

}
